package tools;


import java.util.Comparator;

public class FirstBigger implements Comparator<Pair<Double, Integer>>
{
	
	public int compare(Pair<Double, Integer> d0, Pair<Double, Integer> d1)
	{
		double a0 = d0.getFirst();
		double a1 = d1.getFirst();
		
		if(a0 == a1)
			return 0;
		else if(a0 > a1)
			return 1;
		else 
			return -1;
	}

}
